package repository

import (
	"github.com/RaymondCode/simple-demo/entity/po"
	"gorm.io/gorm"
)

type Message interface {
	// Insert 发送消息
	Insert(message *po.Message, tx *gorm.DB, isTx bool) error
	// QueryByCondition 查看消息列表
	QueryByCondition(message *po.Message, tx *gorm.DB, isTx bool) (*[]po.Message, error)
}
